<include file="public:header" />
<div class="allpagetop">网站设置<strong>/</strong>微信平台</div>
<div class="admin_main_nr_dbox">
  <div class="pagetit">
    <div class="ptit">微信平台</div>
    <div class="topnav">
      <include file="topnav" />
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="toptip">
    <div class="toptit">提示：</div>
    <p>是否强制认证手机号取决于网站的运营规划，请谨慎选择！</p>
    <p>如您不需要pc端的问答系统，仅将吉他郭问答系统应用于微信公众号，建议你设置不强制认证手机，这样设置用户会静默登录和注册，大大加强用户体验度。</p>
    <p>如您需要PC端和微信端共存，则建议你开启认证手机，开启后不同端口的账号通过手机号进行关联。微信端通过手机号认证直接绑定了PC端的账号。</p>
  </div>
  <div class="toptit">认证设置</div>
  <form action="{:RU('Weixin/save_config')}" method="post" name="FormData" id="FormData" >
    <div class="admin_form_main big">
      
      <div class="fl">是否强制认证手机号:</div>
      <div class="fr">
          <div class="imgchecked_small <if condition="$show.YTATA_WEIXIN_VERIFY_MOBILE eq 1 "> select</if>">
          <input name="YTATA_WEIXIN_VERIFY_MOBILE" type="hidden" value="{$show.YTATA_WEIXIN_VERIFY_MOBILE}" />
          </div>
          <div class="note">如不强制验证手机，PC端注册用户将无法和微信端用户关联</div>
          <div class="clear"></div>
      </div>
  
    
    
  
    
    
<div class="fl"></div>
<div class="fr">
  <input name="" type="submit" class="admin_submit big" value="保存配置"/>
</div>

<div class="clear"></div>

</div>

</form>
 


</div>
<include file="public:footer" />
<script type="text/javascript">
    var uploadUrl = "__ROOT__/index.php?m=home&c=Upload&a=img";
</script>
<script src="__ROOT__/{:C('YTATA_ADMINTPL_DIR')}/public/js/ajaxfileupload.js"></script>
<script src="__ROOT__/{:C('YTATA_ADMINTPL_DIR')}/public/js/fileupload.js"></script>
<script type="text/javascript">
$(function () {
    //删除上传图片
    $('#J_del').live('click',function() {

        $(".input_up_btn").show();
        $(".input_up_img").hide();
        $("input[name=c_pic]").val('');
    });
    
    // 上传图标
    $.upload('#input_up_btn',{type:'category_img'},function(result){
        html="";
        html+="<div class=\"input_up_img\">";
        html+="<a href=\"__ROOT__/{:C('YTATA_IMG_CATEGORY_DIR')}5896b962c92cc.jpg\" target=\"_blank\"><img src=\"__ROOT__/{:C('YTATA_IMG_CATEGORY_DIR')}5896b962c92cc.jpg\" border=\"0\" /></a>";
        html+="<div class=\"del\" id=\"J_del\">删除</div>";
        html+="</div>";
        if(result.status == 1){
            //disapperTooltip("success", "图片上传成功!");
            $("#up_img_show").prepend(html);
            $(".input_up_img").find('a').attr('href',result.content.src);
            $(".input_up_img").find('img').attr('src',result.content.src);
            $(".input_up_btn").hide();
            $("input[name=YTATA_WEIXIN_IMG]").val(result.content.id);
        } else {
            disapperTooltip("remind", "上传失败："+result.content);
        }
    });
});
</script>
</body>
</html>